<?php
session_start();
   if (!isset($_SESSION["nomeAdmin"],$_SESSION["perfilAdmin"])) { header("Location:index.php?act=close"); }
?>
<?php include ("class.php"); ?>

<?php
if ($_GET["co"] != "") { 
       $co = intval($_GET["co"]); 
       $All->validaCadastro( $co );
	   if ($_GET["act"]=="cod"){
	   		echo "<script>top.document.location='valida_inscricao_cod.php?coCurso=".$_SESSION["curso"]."';</script>";
	   }else{
	   		echo "<script>top.document.location='valida_inscricao.php?coCurso=".$_SESSION["curso"]."';</script>";
	   }
}else {
 echo "<script>\n alert('Erro ao Atualizar!'); \n history.back();\n</script>\n"; 
 }
?>